<?php
	require_once ("inc/conn.php");
	
	if (isDynamic()){
		attemptCacheFile ("app","vodmap");
		$template->html = getCacheFile("template_vodmap",$root."template/".app_templatedir."/".app_htmldir."/vodmap.html");
		$CacheName = "vodmap";
		if (chkCache($CacheName)){
			$template->html = getCache($CacheName);
		}
		else{
			$template->replaceLabel();
			$template->replaceLast();
			setCache($CacheName,$template->html,0);
		}
		setCacheFile ("app","vodmap",$template->html);
		$template->replaceRunTime();
		echo $template->html;
	}
	else{
		header("Location:" . getMapLink());
	}
	dispseObj();
?>